home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / PowerPC / vbcc / machines / amigawos / libsrc / AmigaLib / FreeIEvents.c < prev    next >
C/C++ Source or Header  |  1998-08-02  |  506b  |  28 lines

  1. /*
  2. ** amiga.lib for vbcc-PowerOpen/WarpOS
  3. **
  4. ** FreeIEvents()
  5. **
  6. ** V0.2 19-Apr-98 phx
  7. **      replaced <clib/powerpc/powerpc_protos.h> by <clib/powerpc_protos.h>
  8. **      deleted 'volatile'
  9. ** V0.1 15-Mar-98 phx
  10. **      created
  11. */
  12.  
  13. #include <devices/inputevent.h>
  14. #include <proto/exec.h>
  15. #include <clib/powerpc_protos.h>
  16.  
  17. void FreeIEvents(struct InputEvent *events)
  18. {
  19.   struct InputEvent *next;
  20.  
  21.   while(events!=NULL)
  22.   {
  23.     next=events->ie_NextEvent;
  24.     FreeVecPPC((APTR)events);
  25.     events=next;
  26.   }
  27. }
  28.